package com.ruoyi.rpt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 报表参数对象 rpt_parameter
 * 
 * @author ruoyi
 */
public class RptParameter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参数ID */
    private Long paramId;

    /** 报表ID */
    @Excel(name = "报表ID")
    private Long reportId;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String paramName;

    /** 参数键名 */
    @Excel(name = "参数键名")
    private String paramKey;

    /** 参数类型（string,number,date,datetime,boolean） */
    @Excel(name = "参数类型", readConverterExp = "s=tring,n=umber,d=ate,d=atetime,b=oolean")
    private String paramType;

    /** 默认值 */
    @Excel(name = "默认值")
    private String defaultValue;

    /** 是否必填（0否 1是） */
    @Excel(name = "是否必填", readConverterExp = "0=否,1=是")
    private Integer required;

    /** 参数顺序 */
    @Excel(name = "参数顺序")
    private Integer paramOrder;

    public void setParamId(Long paramId) 
    {
        this.paramId = paramId;
    }

    public Long getParamId() 
    {
        return paramId;
    }

    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }

    public void setParamName(String paramName) 
    {
        this.paramName = paramName;
    }

    public String getParamName() 
    {
        return paramName;
    }

    public void setParamKey(String paramKey) 
    {
        this.paramKey = paramKey;
    }

    public String getParamKey() 
    {
        return paramKey;
    }

    public void setParamType(String paramType) 
    {
        this.paramType = paramType;
    }

    public String getParamType() 
    {
        return paramType;
    }

    public void setDefaultValue(String defaultValue) 
    {
        this.defaultValue = defaultValue;
    }

    public String getDefaultValue() 
    {
        return defaultValue;
    }

    public void setRequired(Integer required) 
    {
        this.required = required;
    }

    public Integer getRequired() 
    {
        return required;
    }

    public void setParamOrder(Integer paramOrder) 
    {
        this.paramOrder = paramOrder;
    }

    public Integer getParamOrder() 
    {
        return paramOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paramId", getParamId())
            .append("reportId", getReportId())
            .append("paramName", getParamName())
            .append("paramKey", getParamKey())
            .append("paramType", getParamType())
            .append("defaultValue", getDefaultValue())
            .append("required", getRequired())
            .append("paramOrder", getParamOrder())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 